<?php
$spotlight = array ('user1','user2','user3','user4');
$topsl = $this->calSpotlight ($spotlight,100);
?>

<?php if ( $topsl || $this->countModules('top') ): ?>
<div id="ja-topslwrap" class="wrap">
<?php endif; ?>

<?php if ( $this->countModules('top') ): ?>
	<div id="ja-top"><div class="main">
		<jdoc:include type="modules" name="top" style="xhtml" />
	</div></div>
<?php endif; ?>

<?php if( $topsl ) : ?>
<!-- TOP SPOTLIGHT -->
<div id="ja-topsl">
<div class="main clearfix">

	<?php if( $this->countModules('user1') ): ?>
	<div class="ja-box column ja-box<?php echo $topsl['user1']['class']; ?>" style="width: <?php echo $topsl['user1']['width']; ?>;">
		<jdoc:include type="modules" name="user1" style="JAxhtml" />
	</div>
	<?php endif; ?>

	<?php if( $this->countModules('user2') ): ?>
	<div class="ja-box column ja-box<?php echo $topsl['user2']['class']; ?>" style="width: <?php echo $topsl['user2']['width']; ?>;">
		<jdoc:include type="modules" name="user2" style="JAxhtml" />
	</div>
	<?php endif; ?>

	<?php if( $this->countModules('user3') ): ?>
	<div class="ja-box column ja-box<?php echo $topsl['user3']['class']; ?>" style="width: <?php echo $topsl['user3']['width']; ?>;">
		<jdoc:include type="modules" name="user3" style="JAxhtml" />
	</div>
	<?php endif; ?>

	<?php if( $this->countModules('user4') ): ?>
	<div class="ja-box column ja-box<?php echo $topsl['user4']['class']; ?>" style="width: <?php echo $topsl['user4']['width']; ?>;">
		<jdoc:include type="modules" name="user4" style="JAxhtml" />
	</div>
	<?php endif; ?>

</div>
</div>
<!-- //TOP SPOTLIGHT -->
<?php endif; ?>

<?php if ( $topsl || $this->countModules('top') ): ?>
</div>
<?php endif; ?>

<?php if ( !$topsl && !$this->countModules('top') ): ?>
<div id="ja-headsep">&nbsp;</div>
<?php endif; ?>

<!-- MAIN NAVIGATION -->
<?php $this->loadBlock('navhelper') ?>
<!-- //MAIN NAVIGATION -->

<?php if ( $this->countModules('user5') ): ?>
	<div id="ja-intro" class="wrap"><div class="main clearfix">
		<jdoc:include type="modules" name="user5" style="JAxhtml" />
	</div></div>
<?php endif; ?>